package com.example.myanimation;

import android.animation.TypeEvaluator;

/**
 * Created by zy on 2017/5/24.
 */

public class PointEvaluator implements TypeEvaluator<Point> {
    @Override
    public Point evaluate(float fraction, Point startValue, Point endValue) {
        int radius = (int) (startValue.getRadius()+(endValue.getRadius()-startValue.getRadius())*fraction);
        Point point = new Point(radius);
        return point;
    }
}
